package com.yangfan.cloudalibaba.service;

import com.yangfan.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "seata-storage")
public interface StorageService {

    @PostMapping(value = "/storage/decreaseStorage")
    CommonResult decreaseStorage(@RequestParam(value = "productId")Long productId , @RequestParam(value = "count") Integer count);

}
